home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
utils
/
dupe_n25.zip
/
DUPENUKE.DOC
< prev
next >
Wrap
Text File
|
1996-05-29
|
14KB
|
307 lines
Dupe Nukem V2.5
(c)1996 "Weird" Al Walker
Crazy Train ][ BBS (604)383-2201 Fidonet 1:340/88
Internet un109@freenet.victoria.bc.ca
>or< allen.walker@f88.n340.z1.fidonet.org
0.0 Disclaimer
1.0 What is Dupe Nukem?
1.1 Why "Dupe Nukem"?
2.0 How do I use it?
2.1 Keywords
2.2 Command Line Options
2.3 ADAT2DN.EXE Maximus 2.x -> .CFG converter
2.4 File Viewer
3.0 What are all these options?
3.1 Search Criteria
3.2 Delete Preferences
3.3 Rename Only
4.0 How does it work?
5.0 How well does it work?
6.0 How do I register the Program?
7.0 Acknowledgements
0.0 Disclaimer
Since this is the 90s, I think I had better put this in here...
This program is guaranteed to take up disk space. Beyond that I accept no
responsibility for anything. Reasonable steps have been taken to make sure
that this program will do no permanent damage to anything, and that it
functions as advertised.
1.0 What is Dupe Nukem?
Dupe Nukem was originally written for someone that was fed up with all the
cross-hatching of files in the file bone, identical in every detail except for
the file area they were hatched into. This potentially creates duplicates.
After a while, these duplicates mount up to the point where they overwhelm
available disk space.
Another place where this program would come in handy is for those people
who might want to have lots of CD Roms online, but to save money copy them
to Hard Disk... I know of one Sysop who has 31 CD Roms online, 115,000 files,
28 Gigs of hard drive space (mostly in 4.3 Gig drives). Dupe Nukem deleted
10,000 files (almost a Gig of files) on his system. Now THAT'S savings!
Enough to add 2 more CDs worth of Shareware!
How is this program different from regular duplicate file removers? Not
only does it remove the duplicates, following certain criteria, it also
removes their description from FILES.BBS, which makes it ideal for overworked
Sysops who haven't got time to go through their own file lists...
1.1 Why "Dupe Nukem"?
If any of you are familiar with my VGA Planets door, you would know that
I sometimes come up with the weirdest names. It is called "S.T.U.P.I.D.",
which stands for Simply The Ultimate Planets Interface Door...
2.0 How do I use it?
This program will work with any system that uses FILES.BBS in the same
directory as the files themselves.
To work the program you must edit DUPENUKE.CFG to reflect how your system
is set up, including the areas where your FILES.BBS and file areas are held.
The configuration file is laid out similar to other .CFG and .CTL files.
2.1 Keywords
The following keywords are recognized by DUPENUKE, in DUPENUKE.CFG:
Logfile : Name of file used to store log of what DUPENUKE has deleted
Offset : Number of spaces at the beginning of descriptions in FILES.BBS
TempArea : Path of where to put duplicate files rather than deleting them
SortProgram: Name of program to use to sort the file list
Area : Path to file area - There MUST be areas for this program to work!
More information is available in DUPENUKE.CFG...
If you wish to have different .CFG files, say to keep groups of files
separate from each other's DUPE checking, you can specify a different .CFG
file in the command line.
DUPENUKE NEWFILES.CFG
When you get to the starting menu, choose the options you would like to
use by moving the flashing cursor to the option you want to toggle (cursor
keys, TAB key) and press Space to toggle the option. You can also use the
mouse to move around. Toggle on "START" to begin processing.
2.2 Command Line Options
┌──────────────────────────────────────────┬──────────────────────────────────┐
│-! Rename file instead of deleting │ -D Check for same file date │
│-1 Delete first duplicate found │ -E Check extension of file │
│-KN Keep newest file │ -F Compare files byte-by-byte │
│-KND Keep file in newest file directory │ -Z Compare file sizes │
│-KO Keep oldest file │ │
│-KOD Keep file in oldest file directory │ -GO Start Non-Interactive Mode │
├──────────────────────────────────────────┴──────────────────────────────────┤
│ -C... Set Config file to "..." (instead of default "DUPENUKE.CFG") │
│ -L... Set Log file to "..." (Default is no logging) │
│ -O## Set Offset to ## (See DUPENUKE.DOC for details) │
│ -R... Turn on Report Only Mode ("..." is report file to use, │
│ default to "DUPENUKE.RPT" if just "-R" is used) │
│ -S... Set sort program to "..." (ie -Sksort.exe = "KSORT.EXE") │
│ -T... Set Temporary storage area to "..." │
└─────────────────────────────────────────────────────────────────────────────┘
2.3 ADAT2DN.EXE Maximus -> .CFG converter
This program will allow people using Maximus 2.x to create a "quicky" area
list for the .CFG file... You run it thusly:
ADAT2DN {path to AREA.DAT} >>DUPENUKE.CFG
(The ">>" will append the output of ADAT2DN to the end of DUPENUKE.CFG, and
you can then delete the areas in that list that you don't want checked...)
If anyone can send me a FAREA.DAT or whatever from Max3, I will make a
converter for that too....
2.4 File Viewer
For this version, I have implemented a file viewer, configurable to be
used to view/display almost any type of file, including viewing archive
contents, playing .WAV & .VOC files, and viewing .JPG, .GIF & whatever
other type of file you have something that will view them with. This is
done by checking through the .CFG file for a corresponding extension, and
running the proper viewer/archiver depending on the extension.
For example:
View ZIP "pkunzip -v"
in the .CFG file will look for any file with a "ZIP" extension, and run
"PKUNZIP -V" filename, then allow you to view the results.
View GIF "qpeg"
in the .CFG will run "QPEG" filename, viewing the file.
If the extension is not found in the "View" list in the .CFG, the file will
be assumed to be a plain asc file, and viewed with the built in text viewer.
NOTE: If the program you are running needs a key pressed to continue
(like QPEG needs a space at the beginning and end of the run), you will need
to press it, un-prompted... The output of the program is being redirected
to a file to be read by the built in viewer, and you won't be able to see
it's prompt, but it will still be waiting for the key...
3.0 What are all these options?
Dupe Nukem allows you to use a set of criteria to decide what is and isn't
a duplicate file. It also allows you to configure the program to choose
which duplicate you want to delete when one is found. The options are as
follows:
Options: ( ) Interactive Delete Preferences: ( ) Delete First
( ) Non-Interactive ( ) Keep Oldest File
( ) Report Only ( ) Keep Newest File
( ) Keep Oldest Dir
Search Criteria: ( ) Check Size ( ) Keep Newest Dir
( ) File Date Same ( ) Rename Duplicate
( ) Compare Files ╔═══════╗
( ) Extension ║ START ║
╚═══════╝
Interactive mode: Allows you to pick and choose which duplicate files
will be removed.
Report Only: Will only generate a report (DUPENUKE.RPT) of what this
program WOULD have deleted.
3.1 Search Criteria
These are used to determine what files are duplicates.
Check Size: Compare the sizes of the 2 files.
File Date Same: Compares the Date of the 2 files. If the same then they
are presumed dupes.
Compare Files: Does a Byte-By-Byte compare of the files. If they match
they are DEFINITELY duplicate files...
Extension: Compares the .EXT of the files (ie: FIRE.TXT and FIRE.ASC may
in fact be dupes of each other, but with Extension on, they
won't be found.
3.2 Delete Preferences
This determines which file will be removed in non-interactive mode.
Delete First: Deletes first of 2 files found to be dupes.
Keep Oldest/Newest: Keeps the Oldest/Newest of the 2 dupes. If the dates
match, file is deleted according to "Delete First".
Keep Oldest/Newest Directories: Will delete dupes according to how old
the directory they are in (in days) is.
This should protect CD's that you have
installed later than others.
Rename Duplicate: Renames root of filename to a unique filename, usually by
either adding a "!" to the name (if less than 8 characters)
or by changing the last character (if 8 characters long
already). This will not do anything to the Extension.
Most of the Delete Preferences are mutually exclusive, so turning one on
turns off the rest. If no options are highlighted, the second duplicate found
is deleted (Default Setting).
3.3 Rename Only
Some files are duplicates in name only... On very LARGE systems, one might
find a large number of "name-only" duplicates, who's only problem is that
they have the same name. A game with the same name as a .ZIPped Text File...
This usually causes a problem for systems that have a "Global" file tagging
capability, and give you the first matching file, whether it's the one you
want or not.
If you use Rename Only mode, the offending file will be renamed, both in the
directory & in the FILES.BBS entry for it. This usually means adding a "!"
to the end of the root (first 8 characters, before the ".") of the filename,
but could also mean changing the last character (TEXTFILE.ZIP would become
TEXTFIL!.ZIP). This rename feature then checks to make sure it's not creating
a whole new name-duplication problem, by quickly checking the whole list. (If
"!" were already used, it would try numbers, letters, then a couple of weird
symbols).
4.0 How does it work?
First, all of the filenames in each FILES.BBS are read and stored, along with
the path (the actual directories are not read, so only those files found *in*
the FILES.BBS will be searched/sorted). Then all the files are sorted in
alphabetical order. This file is then read, comparing each filename with
the next one in the list.
If a duplicate filename is found, then other criteria are checked, such as
file size, file date, and actual byte-by-byte comparisons (all configurable
from the main menu, or command line).
If the file is definitely a dupe, the file(s) are either put up on the
screen (interactive mode), or one is deleted automatically (non-interactive
mode) or written to a report file depending on the options selected. If you
choose to delete the file, the file is removed, along with the description
found within FILES.BBS...
5.0 How well does it work?
I tried the program on a system with 115,000 files (31 Shareware CD-Roms),
and the program found approximately 10,000 duplicates, adding up to almost a
*Gigabyte* of space saved.
6.0 How do I register the Program?
Fill out and mail the registration form (REG-FORM.TXT), along with a check
or M.O. to:
Allen Walker
P.O. Box 5874
Victoria, B.C. Canada
V8R 6S8
If you wish to pay by Visa, be sure to completely fill out the information
in the registration form, and your Key will be sent within 24 hours of reciept
of your form.
7.0 Acknowledgements
Many thanks to: Joe Patterson - For the original Idea, for being the first
registered user, and for proofreading the docs!
John Bernard - For allowing me to run my program on his
system after just meeting me, and putting up
with my debugging the DeleteFiles.BBS_Desc
code on the fly (It worked fine on my system!)
Gerald Albion - The other half & founding father of
Whirlwind Software - For introducing me to
John, and some good ideas...
▀█▄ ▀█▄ ▀█▄ ▀█▄ ▀█▄ ▀███▀▀█▄ ▀█▄ ▀█▄ ▀█▄ ▀█▄ ▀██▄ ▀█▄ ▀██▀▀█▄
██ ▄██ ▄██ ▐██▄▄▐██ ▐██ ▐██ ▄██ ▐██ ██ ▄██ ▄██ ▐██ ▐████▄▐██ ▐██ ▐██
████████▀ ██▌▀▀██▌ ██▌ ██▀███▀ ██▌ ████████▀ ██▌ ██▌ ▀███▌ ██▌ ██
▄██▀ ██▀ ▐██ ▐██ ▐██ ▐█▌ ▀██▄ ▐██▄▄▄▄ ▄██▀ ██▀ ▐██ ▐██ ▐██ ▐██▄▄▄██▀
This is another fine software product of Whirlwind Software, Victoria, B.C.